﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ATM.BUS;
using ATM.Entities;

namespace ATMSystem
{
    public partial class frmViewBalance : Form
    {
        private Account passAcc;
        private Card passCard;
        public frmViewBalance()
        {
            InitializeComponent();
        }

        public frmViewBalance(Account acc, Card card)
        {
            InitializeComponent();
            passAcc = acc;
            passCard = card;
        }

        private void frmViewBalance_Load(object sender, EventArgs e)
        {
            string balance = "Your account have: " + CheckBalaceBUS.GetBalance(passCard.CardNo) + " .";
            label1.Text = balance;
        }
    }
}
